﻿@model CNRegex.Web.Models.ModelBlogCreate
@{
    ViewBag.Title = "新建随笔";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="@Url.Content("~/Scripts/kindeditor/kindeditor-min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/common.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/css/BlogCreate.css")" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	$(document).ready(
		function () {
			registerKindeditor("content");
		}
	);
	function validation() {
	}
</script>
<h2 class="t_h2">新建随笔</h2>
@using (Html.BeginForm())
{
<div class="bc_item">
	<span>标题:</span>

	@Html.TextBoxFor(x=>x.BlogEntity.Title)
</div>
<div class="bc_item">
	<span>分类:</span>
	@Html.DropDownList("BlogEntity.CatalogID", Model.BlogCatalog)
</div>
<div>
	<textarea id="content" name="BlogContentEntity.Content" style="height:400px;">
		@(Model.BlogContentEntity == null ? "" : Model.BlogContentEntity.Content)
	</textarea>
</div>
@Html.HiddenFor(x=>x.BlogEntity.ID)
@Html.HiddenFor(x => x.BlogEntity.CreateDate)
@Html.HiddenFor(x => x.BlogContentEntity.ID)
@Html.HiddenFor(x => x.BlogContentEntity.BlogID)
<p>
	<input type="submit" value="确定" onclick="return validation();" />
</p>
}

